<?php

/*
 接口名称：/erpStudent/add
 接口描述：新增学员
*/

//获取参数
$oscr_osid          = $route->bodyParams['oscr_osid'];
$oscr_ocid          = $route->bodyParams['oscr_ocid'];
$oscr_total_class   = $route->bodyParams['oscr_total_class'];
$oscr_surplus_class = $route->bodyParams['oscr_surplus_class'];
$oscr_course_price  = $route->bodyParams['oscr_course_price'];
$oscr_ooid          = $route->bodyParams['oscr_ooid'];
$oscr_status          = $route->bodyParams['oscr_status'];

//写入数组
$insertArr = [
    'oscr_osid'          => $oscr_osid,
    'oscr_ocid'          => $oscr_ocid,
    'oscr_total_class'   => $oscr_total_class,
    'oscr_surplus_class' => $oscr_surplus_class,
    'oscr_course_price'  => $oscr_course_price,
    'oscr_ooid'          => $oscr_ooid,
    'oscr_status'        => $oscr_status
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_student_course_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );